/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package persistence.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author sidy
 */
@Entity
@Table(name = "oeuvre")
public class Oeuvre implements  Serializable{
    @Id @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name ="id", nullable = false,unique = true)
    private Integer id;
    
    @Column(name = "titre")
    private String titre;
    
    @Column(name = "auteur")
    private String auteur;
    
    @Column(name = "nbr_resa")
    private Integer nbr_resa;
    
    
}
